#pragma region LICENSE
// 
// *LICENSE:
// Copyright (c) 2013 - 2014, "cheat_code" <cheat_code@aim.com>.
// Use the code is allowed under the Artistic License 2.0 terms,
// as specified in the LICENSE file distributed with this code,
// or available from: http://opensource.org/licenses/artistic-license-2.0
//
#pragma endregion LICENSE

#include <Windows.h>
#include "Cheat_Code.h"

//* Declare global variables
bool EndMainThread = false;

unsigned long MainThread( void )
{
	//* TO DO: Show examples
	while( !EndMainThread )
	{
		::Sleep( 100 );
	};
	return( 0 );
};

::BOOL WINAPI DllMain( __in ::HMODULE ModuleHandle, __in ::DWORD CallReason, __in ::LPVOID Reserved )
{
	if( CallReason == DLL_PROCESS_ATTACH )
	{
		::MessageBoxA( NULL, "Welcome!(:", "Cheat_Code", MB_OK );
		::CreateThread( NULL,
						0,
						( LPTHREAD_START_ROUTINE )&MainThread,
						NULL,
						NULL,
						0 );
	}
	return( TRUE );
};